﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ReportDetroitDaily.aspx.cs" Inherits="GMAC.ReportingSystem.Paginas.ReportDetroitDaily" Theme="Theme" EnableTheming="true" EnableEventValidation="false" %>

<%@ Register assembly="FrameworkManapro.WebUI" namespace="FrameworkManapro.WebUI" tagprefix="fwm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script type="text/javascript" src="../Scripts/Validations.js"></script>

    <script type="text/javascript" src="../Scripts/CheckFramesAndRedirect.js"></script>

    <script type="text/javascript">
        function ExpandPanel() {
            var pnlDetailsExtender = $find("pnlDetailsExtender");
            var pnlSearchExtender = $find("pnlSearchExtender");
            if (pnlDetailsExtender != null)

                pnlDetailsExtender.expandPanel();
            pnlSearchExtender.collapsePanel();
        }
        function ChangeAllChecks(gridViewName, type) {
            var chkSelectAll;
            if (type == 0)
                chkSelectAll = document.getElementById("chkSelectAllStatus");
            else
                chkSelectAll = document.getElementById("chkSelectAllProductType");
            
            var tabla = document.getElementById(gridViewName);
            celdas = tabla.cells;
            for (i = 0; i < celdas.length - 1; i++) {
                if (celdas[i].firstChild.type == "checkbox") {
                    celdas[i].firstChild.checked = chkSelectAll.checked;
                }
            }
            
        }
    </script>

</head>
<body class="TotalBody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnableScriptGlobalization="true">
    </asp:ScriptManager>
    <div class="Contenedor" style = "padding-bottom: 10px; padding-top:10px;">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
            <tr>
                <td style="text-align: left">
                    <span class="FontArialPaddingLeft15 TitleFontBlue FontArialBoldCaps">&nbsp;DAILY 
                    REPORTS</span></td>
            </tr>
            <tr>
                <td align="center">
                    <div class="WindowHeightMain">
                        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
                            <tr>
                                <td class="TDSeparadorV">
                                </td>
                            </tr>
                            <tr class="SearchBackground" style="width: 100%">
                                <td class="TDBorder">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td style="padding-left: 10px; text-align: left; width: 100%">
                                                <span class="FontArialBoldCaps" style="font-size: 14px">Detroit Daily</span>
                                            </td>
                                            <td style="padding-right: 10px; text-align: right">
                                                <asp:ImageButton ID="imgCollapseSearch" ImageAlign="Middle" ImageUrl="~/App_Themes/Theme/Images/Images IE6/Minus.gif"
                                                    Width="25px" Height="25px" OnClientClick="return false;" runat="server" BorderWidth="0px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Panel ID="pnlSearch" runat="server" SkinID="pnlBusqueda" Height="158px">
                                        <table cellpadding="0" cellspacing="0" border="0" visible="false">
                                            <tr>
                                                <td valign="top">
                                                    <table cellpadding="0" cellspacing="0" border="0">
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Type</td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlType" runat="server" SkinID="ddl12px" 
                                                                    TabIndex="14" 
                                                                    AutoPostBack="True" onselectedindexchanged="ddlType_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvType" runat="server" 
                                                                            ControlToValidate="ddlType" Display="Dynamic" 
                                                                    >*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvType_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvType">
                                                                        </cc1:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Product Type</td>
                                                            <td class="TDTextBox" >
                                                                <asp:DropDownList ID="ddlProductType" runat="server" AutoPostBack="True" 
                                                                    onselectedindexchanged="ddlType_SelectedIndexChanged" SkinID="ddl12px" 
                                                                    TabIndex="14" >
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvProductType" runat="server" 
                                                                    ControlToValidate="ddlProductType" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                <cc1:ValidatorCalloutExtender ID="rfvProductType_ValidatorCalloutExtender" 
                                                                    runat="server" TargetControlID="rfvProductType">
                                                                </cc1:ValidatorCalloutExtender>
                                                                <asp:Panel ID="pnlProductType" runat="server"  Width="240px" Visible="false">
                                                                         <table cellspacing="0" cellpadding="0" border="0" id="Table2" style="background-color:White;border-color:Gray;border-width:1px;border-style:Solid;width:220px;border-collapse:collapse;">
			                                                            <tr class="HeaderGridBackground" align="left" valign="middle" style="font-family:Arial;font-size:10px;font-weight:bold;height:25px; width:100%">
				                                                            <td align="left"> 
				                                                            <input id="chkSelectAllProductType" type="checkbox" name="chkSelectAllProductType" onclick="javascript:ChangeAllChecks('grvProductType',1); " />  </td>
				                                                            <td align="left">
                                                                                ID
                                                                            </td>
                                                                            <td align="center">
                                                                                Product Name</td>
			                                                            </tr>
			                                                            </table>
                                                                                     <div style="overflow:auto;  width:240px; height:100px;    ">
                                                                                     <asp:GridView ID="grvProductType" runat="server" AutoGenerateColumns="False" 
                                                DataKeyNames="AccountTypeID" ShowHeader="false" SkinID="GridGMAC" Width="220">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="chkSelectAllProductType" runat="server" 
                                                                onclick="javascript:ChangeAllChecks('grvProductType',1); " />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkSelected" runat="server"  />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="AccountTypeID" HeaderText="AccountTypeID">
                                                    <ItemStyle Width="30%" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="ProductName" HeaderText="Product Name">
                                                        <ItemStyle Width="70%" />
                                                    </asp:BoundField>
                                                </Columns>
                                                <HeaderStyle HorizontalAlign="Left" />
                                            </asp:GridView>
                                                                                     </div>
                                                                                     </asp:Panel>
                                                                </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td class="TDSeparadorH">
                                                </td>
                                                <td valign="top">
                                                    <table border="0" cellpadding="0" cellspacing="0" style="height: 50px">
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                &nbsp;Date</td>
                                                            <td class="TDTextBox">
                                                                <asp:TextBox ID="txtRDateSearch" runat="server" MaxLength="10" 
                                                                    SkinID="TextBox12px" TabIndex="4" TextMode="SingleLine"></asp:TextBox>
                                                                <cc1:CalendarExtender ID="calendarRDateSearch" runat="server" 
                                                                    TargetControlID="txtRDateSearch">
                                                                </cc1:CalendarExtender>
                                                                <cc1:MaskedEditExtender ID="meeRDateSearch" runat="server" 
                                                                    Mask="99/99/9999" MaskType="Date" TargetControlID="txtRDateSearch">
                                                                </cc1:MaskedEditExtender>
                                                                <cc1:MaskedEditValidator ID="maskedRDateSearch" runat="server" 
                                                                    ControlExtender="meeRDateSearch" 
                                                                    ControlToValidate="txtRDateSearch" Display="Dynamic" 
                                                                    InvalidValueMessage="*" ToolTip="Fecha incorrecta"></cc1:MaskedEditValidator>
                                                                <asp:RequiredFieldValidator ID="rfvDate" runat="server" 
                                                                    ControlToValidate="txtRDateSearch" ErrorMessage="*">*</asp:RequiredFieldValidator>
                                                                <cc1:MaskedEditValidator ID="maskedRDateSearch2" runat="server" 
                                                                    ControlExtender="meeRDateSearch" 
                                                                    ControlToValidate="txtRDateSearch" Display="None" 
                                                                    InvalidValueMessage="Invalid Emission Date" ToolTip="Fecha incorrecta"></cc1:MaskedEditValidator>
                                                                <asp:RangeValidator ID="rvRDateSearch" runat="server" 
                                                                    ControlToValidate="txtRDateSearch" 
                                                                    ErrorMessage="RDateSearch out of valid range" MaximumValue="06/06/2079" 
                                                                    MinimumValue="01/01/1900" Type="Date">*</asp:RangeValidator>
                                                                <cc1:ValidatorCalloutExtender ID="vceRDateSearch2" runat="server" 
                                                                    TargetControlID="maskedRDateSearch">
                                                                </cc1:ValidatorCalloutExtender>
                                                                <cc1:ValidatorCalloutExtender ID="vceRDateSearch3" runat="server" 
                                                                    TargetControlID="rvRDateSearch">
                                                                </cc1:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Report Type</td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlReportType" runat="server" SkinID="ddl12px" 
                                                                    TabIndex="14">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvReportType" runat="server" 
                                                                    ControlToValidate="ddlReportType" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                <cc1:ValidatorCalloutExtender ID="rfvReportType_ValidatorCalloutExtender" 
                                                                    runat="server" TargetControlID="rfvReportType">
                                                                </cc1:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Delinquency Type</td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlDelinquencyType" runat="server" SkinID="ddl12px" 
                                                                    TabIndex="14">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvDelinquencyType" runat="server" 
                                                                    ControlToValidate="ddlDelinquencyType" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                <cc1:ValidatorCalloutExtender ID="rfvDelinquencyType_ValidatorCalloutExtender" 
                                                                    runat="server" TargetControlID="rfvDelinquencyType">
                                                                </cc1:ValidatorCalloutExtender>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                &nbsp;</td>
                                                            <td class="TDTextBox">
                                                                <asp:ImageButton ID="imgBuscarReg" runat="server" 
                                                                    Height="25px" ImageAlign="Middle" 
                                                                    ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Find.jpg" 
                                                                    OnClick="imgBuscarReg_Click" TabIndex="5" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td id="Botones" style="vertical-align: middle">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <cc1:CollapsiblePanelExtender ID="pnlSearch_Collapse" runat="server" TargetControlID="pnlSearch"
                                        BehaviorID="pnlSearchExtender" CollapsedImage="~/App_Themes/Theme/Images/Images IE6/Plus.gif"
                                        ExpandedImage="~/App_Themes/Theme/Images/Images IE6/Minus.gif" CollapseControlID="imgCollapseSearch"
                                        ExpandControlID="imgCollapseSearch" Collapsed="false" SuppressPostBack="false"
                                        ImageControlID="imgCollapseSearch">
                                    </cc1:CollapsiblePanelExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr  style="width: 100%">
                                <td >
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Image ID="Image1" runat="server" 
                                        ImageUrl="~/App_Themes/Theme/Images/reporte.JPG" Visible="False" 
                                        Width="100%" />
                                </td>
                            </tr>
                            <tr>
                                <td class="TDSeparadorV">
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right;">

                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <asp:UpdatePanel ID="upMessage" runat="server">
        
        <ContentTemplate>
            <asp:Panel ID="pnlMessage" runat="server" CssClass="modalPopup" Height="140px" Style="display: none;"
                Width="400px">
                <table width="100%">
                    <tr style="height: 100px">
                        <td style="height: 100%" align="center">
                            <uc1:wucMessage ID="wucMessage" runat="server" />
                        </td>
                    </tr>
                    <tr style="vertical-align: bottom">
                        <td align="center">
                            <asp:ImageButton ID="btnAccept" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Accept.jpg"
                                CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="popupExtenderMessage" runat="server" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="pnlMessage" TargetControlID="lnkPopupMessage"
                CancelControlID="btnAccept">
            </cc1:ModalPopupExtender>
            <asp:LinkButton ID="lnkPopupMessage" runat="server"></asp:LinkButton>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

